package com.wjwh.heaven.upms.api.feign;


import com.wjwh.heaven.common.core.utils.Result;
import com.wjwh.heaven.upms.api.pojo.entity.SdCorp;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * <p>
 * 企业 前端控制器
 * </p>
 *
 * @author dm
 * @since 2021-02-26
 */
@FeignClient(contextId = "sdCorp",value = "heaven-upms")
public interface RemoteSdCorpService {

    /**
     * 获取用户信息
     * @param userId
     * @return
     */
    @GetMapping(value = "/api/corp/{corpId}")
    Result<SdCorp> userInfoByUserId(@PathVariable String userId);
}
